﻿Public Class CommentGateway
    Inherits DataGateway

    Protected Overrides ReadOnly Property FindAllQuery As String
        Get
            Return "SELECT * FROM AquariumCommentsView"
        End Get
    End Property

    Protected Overrides ReadOnly Property DeleteQuery As String
        Get
            Return "DELETE FROM Comment"
        End Get
    End Property

    Protected Overrides ReadOnly Property SiteUserQuery() As String
        Get
            Return "SELECT SiteUser.* FROM Comment LEFT JOIN SiteUser ON Comment.UserID=SiteUser.ID WHERE Comment.ID=@ID"
        End Get
    End Property

End Class
